package com.liyongjian.apidoc.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.liyongjian.apidoc.domain.enumm.ContentType;
import com.liyongjian.apidoc.domain.enumm.DataType;
import com.liyongjian.apidoc.domain.enumm.LiveDieState;

@Entity
@Table(name = "doc_param")
public class Param extends AbstractEntity {

    private static final long serialVersionUID = -5013690784447412826L;

    public Long userId;
    public Long sysId;
    public Long modelId;
    public Long apiId;
    @Column(columnDefinition = "tinyint")
    public ContentType contentType = ContentType.GET;
    @Column(name = "typee", columnDefinition = "tinyint")
    public DataType type = DataType.STRING;
    public String name;
    public Long parentId;
    public String description;
    @Column(columnDefinition = "tinyint")
    public LiveDieState state = LiveDieState.LIVE;

    public Param() {}


}
